package com.ambow.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.*;

@Table
@Entity
public class Post extends ID implements Serializable {

	private String title;// 内容
	private String content; // 发言内容
	private Date createTime;// 发言时间
	private int status;// 1正常 0不正常
	
	@ManyToOne(targetEntity = Message.class)
	@JoinColumn(name = "message_id", referencedColumnName = "id")
	private Message message;

	public Message getMessage() {
		return message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
